#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Sep 25 09:34:50 2022

@author: liqingsimac
"""

'''
###############################################
##行最简形
import sympy as sy
A1=[1,1,2,1,5]
A2=[2,3,2,3,10]
A3=[3,2,9,4,18]
M = sy.Matrix([A1,A2,A3])
M_rref = M.rref()
s='The row echelon form and the the pivot columns:{}'
print(s.format(M_rref))
'''

###############################################
##行最简形
import sympy as sy
A1=[5,3,5,12,10]
A2=[2,2,3,5,4]
A3=[1,7,9,4,2]
M = sy.Matrix([A1,A2,A3])
M_rref = M.rref()
s='The row echelon form and the the pivot columns:\n{}'
print(s.format(M_rref))



